package com.airline.form;

import java.util.ArrayList;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionMapping;
import org.apache.struts.util.LabelValueBean;
import org.apache.struts.validator.ValidatorForm;

import com.airline.beans.Employee;



public class SearchEmployeeForm extends ValidatorForm{
	
	
	Employee emp = new Employee();
	String error = null;
	
	ArrayList positionList = new ArrayList();
	ArrayList stateList = new ArrayList();
	
	
	public ArrayList getPositionList() {
		return positionList;
	}

	public void setPositionList(ArrayList positionList) {
		this.positionList = positionList;
	}

	public ArrayList getStateList() {
		return stateList;
	}

	public void setStateList(ArrayList stateList) {
		this.stateList = stateList;
	}

	public SearchEmployeeForm() {
		positionList.add(new LabelValueBean("Admin","Admin"));
		positionList.add(new LabelValueBean("Pilot","Pilot"));
		positionList.add(new LabelValueBean("Air hostess","Air hostess"));
		
		
		stateList.add(new LabelValueBean("CA","CA"));
		stateList.add(new LabelValueBean("MI","MI"));
		stateList.add(new LabelValueBean("KS","KS"));
		stateList.add(new LabelValueBean("UT","UT"));
		stateList.add(new LabelValueBean("MO","MO"));
		stateList.add(new LabelValueBean("TN","TN"));
	}

	public String getError() {
		return error;
	}

	public void setError(String error) {
		this.error = error;
	}

	@Override
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		
	}

	public Employee getEmp() {
		return emp;
	}

	public void setEmp(Employee emp) {
		this.emp = emp;
	}
	

}
